package org.chen.common;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

@TableName("t_update")
public class UpdateInfo extends Model<UpdateInfo> {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("updateMessage")
    private String updateMessage;
    @TableField("versionCode")
    private String versionCode;

    // Getters and Setters
    public String getUpdateMessage() {
        return updateMessage;
    }

    public void setUpdateMessage(String updateMessage) {
        this.updateMessage = updateMessage;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
